package com.sunny.design.factory.pay;

import com.sunny.design.factory.pay.dto.PaymentRequest;
import com.sunny.design.factory.pay.dto.ResponseData;

/**
 * @author Sunny
 * @date 2020/2/24
 */
public class WechatPayment implements Payment {

    @Override
    public ResponseData pay(PaymentRequest paymentRequest) {
        if (2 == paymentRequest.getPaymentType()) {
            System.out.println("使用微信支付");
        }
        return new ResponseData();
    }
}
